package com.softer.wxzj.mapper;

import com.softer.wxzj.entity.ExpProjectReq;
import com.softer.wxzj.entity.ExpSurveyInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExpSurveyInfoMapper {
    int deleteByPrimaryKey(String id);

    int insert(ExpSurveyInfo record);

    int insertSelective(ExpSurveyInfo record);

    ExpSurveyInfo selectByPrimaryKey(String id);

    int updateById(ExpSurveyInfo record);

    int updateByPrimaryKey(ExpSurveyInfo record);

    int deleteByReqId(@Param("id") String id);

    /**
     * 查询所有勘查记录
     *
     * @param expSurveyInfo 查询实体
     * @return 列表
     */
    List<ExpSurveyInfo> getAllList(ExpSurveyInfo expSurveyInfo);

    List<ExpSurveyInfo> getFuzzyAllList(ExpSurveyInfo expSurveyInfo);
    List<ExpSurveyInfo> seleteByReqId(@Param("reqId") String reqId);
    /**
     * 现场勘查列表
     *
     * @param expProjectReq 查询实体
     * @return 列表
     */
    List<ExpProjectReq> getProjectList(ExpProjectReq expProjectReq);
    List<ExpProjectReq> getProjectListFuzzy(@Param("fuzzy")String fuzzy,@Param("zoneCode")String zoneCode);
}